<template>
  <div :class={calendar:true,isVisible:isVisible} >
    <el-calendar v-model="value">
    </el-calendar>
  </div>
</template>

<script>
export default {
    data() {
        return {
            value: new Date()
        }
    },
    props:['isVisible']
}
</script>

<style lang="less" scoped>
.calendar{
    transition: 0.5s;
    z-index: 3;
    position: fixed;
    top: 8vh;
    width: 600px;
    height: 100px;
    right: -600px;
}
.el-calendar{
    height: 700px;
    background-color:#d2c7de;
    border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}


.isVisible{
    right: 0;
}


</style>